import { ApiProperty, ApiPropertyOptional, PartialType } from '@nestjs/swagger';
import { RecordEntity } from '../entities/record.entity';
import { IsDateString, IsOptional, IsString } from 'class-validator';

export class QueryRecordDto {
  @ApiPropertyOptional()
  @IsString()
  @IsOptional()
  worker: string;

  @ApiPropertyOptional()
  @IsOptional()
  @IsDateString()
  date: string;
  @ApiPropertyOptional()
  @IsString()
  @IsOptional()
  group: string;
}
